package com.mfoyou.agent.web.utils.redis;

import redis.clients.jedis.JedisShardInfo;

/**
 * 分片模式 redisInfo
 *
 * @author wb-zh270168
 */
public class MyShareRedisInfo extends JedisShardInfo {

    private int db = 0;

    public MyShareRedisInfo(String host, int port, int db) {
        super(host, port);
        this.setDb(db);
    }

    @Override
    public int getDb() {
        return db;
    }

    public void setDb(int db) {
        this.db = db;
    }
}
